<?php
/**
 * 异常类
 *
 * @category   ORG
 * @package    ORG
 * @subpackage RestClient
 * @author     海啸 <459103503@qq.com>
 */
class RestException extends Exception
{
    const UNKNOW_ERROR          = 1;

    const CLIENT_ERROR          = 4;
    const BAD_REQUEST           = 400;
    const UNAUTHORIZED          = 401;
    const FORBIDDEN             = 403;
    const NOT_FOUND             = 404;
    const METHOD_NOT_ALLOWED    = 405;
    const CONFLICT              = 409;
    const GONE                  = 410;
    const INVALID_RECORD        = 422;

    const SERVER_ERROR          = 5;
}